﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Tag.cs" company="">
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace MsForgeReboot.Framework.Entities {
    #region Usings

    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;

    #endregion

    /// <summary>
    ///   The tag.
    /// </summary>
    public class Tag {
        #region Public Properties

        /// <summary>
        ///   Gets or sets the blog posts.
        /// </summary>
        /// <value> The blog posts. </value>
        public virtual IList<BlogPost> BlogPosts { get; set; }

        /// <summary>
        ///   Gets or sets the id.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        ///   Gets or sets the name.
        /// </summary>
        [MaxLength(50)]
        [Required(AllowEmptyStrings = false)]
        public string Name { get; set; }

        #endregion
    }
}